/**
 * @Auto generation code
 * 地址操作接口
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, loading
 * 获取用户地址列表 - GET
 */
export const getAddressList = async (loading) => {
	return await request.get('/customer/address', {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 创建一条用户的地址薄记录 - POST
 */
export const newAddress = async (loading) => {
	return await request.post('/customer/address', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 将一条用户的地址薄记录设置成默认 - GET
 */
export const editDefault = async (, {// path params
		id   // 地址主键ID ,必填 
	
}, loading) => {
	return await request.get('/customer/address/default/${id}', {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 获取推荐地址列表 - GET
 */
export const querySuggestPlace = async ({// query params
		city ,   // 城市ID ,必填 
		query   // 查询文字 ,必填 
	
}, loading) => {
	return await request.get('/customer/address/suggest', {
		 city,  query, 
	}, loading)
}


 console.log('存在put方法，未兼容/customer/address/${addressId}，后端需要更正');
/**
 * 
 * path, params, loading
 * 获取用户地址详情 - GET
 */
export const getAddressDetail = async (, {// path params
		id   // 服务地址ID ,必填 
	
}, loading) => {
	return await request.get('/customer/address/${id}', {
		
	}, loading)
}


 console.log('存在delete方法，未兼容/customer/address/${id}，后端需要更正');